<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ page import="com.hzqy.commons.utils.ConstantUtils" %>
<%@ page import="com.hzqy.web.vo.PmsUserVo"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>节目增加</title>
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/defalut.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/public.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/ddspstyle.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/icon.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/WdatePicker/skin/WdatePicker.css">
<script type="text/javascript" src="../../static/js/jquery.min.js"></script>
<script type="text/javascript" src="../../static/js/jquery.easyui.min.js"></script>
<script type="text/javascript"	src="../../static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../static/js/jquery.validate.js"></script>
<script type="text/javascript" src="../../static/js/index.js"></script>
<script type="text/javascript" src="../../static/js/WdatePicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<%
PmsUserVo vo=((PmsUserVo)session.getAttribute("SESSION_USER"));
String userName="";
/*int status=2;
if(vo!=null){
	userName=vo.getF_pu_name();
	if(vo.getRoleIds().equals("2")||vo.getRoleIds().equals("1")){//省公司
		status=1;
	}else if(vo.getRoleIds().equals("3")){//市公司
		status=16;
	}
}*/
String []nonceObj=ConstantUtils.getNonceObject();
%>
<script type="text/javascript">
	$(function() {
		$("#contentForm").validate({
			rules: {
				user_name: {
					required: true
				}
			},
			messages: {
				user_name: {
					required: "请添加用户名",
				}
			}
		});

		/*try{
			var ue = UE.getEditor('f_cc_desc');
		}catch(e){
			console.info(e);
		}*/
	});

	function _submitFm() {
		arrayToJson();
		if($("#contentForm").validate().form()) {
		app_ajax('../../yhUser/insert_yhUser.do', $("#contentForm").serialize(), function(data) {
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
		});
	  }
	}
</script>
<style type="text/css">
</style>
</head>

<body class="overfwidth">
	<div class="barnavtop">您所在的位置：节目管理 &gt; 节目新增</div>
	<div id="workspace">
		<!--主体 开始-->
		<div id="container-1">
			<div class="editspace">
				<form id="contentForm" class="cmxform" enctype="multipart/form-data" name="formName">
					<%--<input type="hidden" id="f_cc_status" name="f_cc_status" value="<%=status%>"/>--%>
					<legend style="text-align: center; margin: 0 auto;">节目新增</legend>
					<!-- <a id="switchItemBtn" class="easyui-linkbutton" style="position: fixed; top: 70px; right: 0; background: #D2E0F2; border: 1px solid #95B8E7;" data-options="iconCls:'icon-remove'" plain="true" href="javascript:moreItemSwitch();">隐藏更多节目</a> -->
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>用户名:
									</td>
									<td width="30%">
										<input id="user_name" name="user_name" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="user_name_tip" class="tip"></span>
									</td>
									<td width="20%" align="right">
										组织:
									</td>
									<td width="30%">
										<input name="f_cc_companyname" id="f_cc_company_name" readonly="readonly"	style="width: 150px;" value="雨花斋" class="yl_inp yw_name" />
										<input name="f_cc_companyid" id="f_cc_company_id" type="hidden" value="8863" />
										<!-- <select id="f_cc_companyid" name="f_cc_companyid" style="width: 150px;">
										</select> -->
										<!-- <span id="f_cc_companyid_tip" class="tip"></span> -->
									</td>

								</tr>
							</table>
						</div>
					</fieldset>
				
				
						
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										性别:
									</td>
									<td width="30%">
										<select id="sex" name="sex" style="width: 150px;">
											<option value="0">女</option>
											<option value="1">男</option>
										</select>
									</td>
									<td width="20%" align="right">
										年龄:
									</td>
									<td width="30%">
										<input name="age" id="age" style="width: 150px;" value="" class="yl_inp yw_name" />
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem hide-item">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										&nbsp;身份证号:
									</td>
									<td width="30%">
										<input id="idcard" name="idcard" style="width: 150px;height: 30px;" value="" class="yl_inp yw_name" />
									</td>

									<td width="20%" align="right">
										联系地址:
									</td>
									<td width="30%">
										<textarea id="address" name="address" style="width: 150px; height: 50px;"></textarea>
									</td>

								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										雨花家园名称:
									</td>
									<td width="30%">
										<textarea id="home_name" name="home_name" style="width: 150px; height: 30px;"></textarea>
									</td>

									<td width="20%" align="right">
										社区名称:
									</td>
									<td width="30%">
										<textarea id="com_name" name="com_name" style="width: 150px; height: 30px;"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										送餐服务:
									</td>
									<td width="30%">
										<select id="open_send_food_service" name="open_send_food_service" style="width: 150px;">
											<option value="0">未开通</option>
											<option value="1">开通</option>
										</select>
									</td>
									<td width="20%" align="right">
										申请状态:
									</td>
									<td width="30%">
										<select id="apply_status" name="apply_status" style="width: 150px;">
											<option value="0">未申请</option>
											<option value="1">审核中</option>
											<option value="2">审核通过</option>
											<option value="3">拒绝</option>
										</select>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>

					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="40%" align="right">
										<jsp:include page="../../pictures/pictures_add_yhz.jsp" flush="true"/>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="40%" align="center">
                                 提醒建议：标清终端单图100KB以下，高清终端单图300K以下。否则可能会出现终端设备无法显示图片或其它异常现象。
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
					<%--<fieldset>
                        <div class="fitem">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="15%" align="right">
                                        &nbsp;节目简介:
                                    </td>
                                    <td width="85%">
                                        <textarea id="f_cc_desc" name="f_cc_desc" style="width: 95%; height: 350px;">
                                        </textarea>
                                        <span id="f_cc_desc_tip" class="tip"></span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>--%>
                    <input type="hidden" name="stime" value="<%=nonceObj[0]%>"/>
                    <input type="hidden" name="sign" value="<%=nonceObj[1]%>"/>
                    <div class="toolbar" style="text-align: center;">
                        <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
                            href="javascript:void(0);" onclick="_submitFm()">保存</a> <a
                            href="javascript:void(0);" data-options="iconCls:'icon-cancel'"
                            class="easyui-linkbutton"
                            onclick="javascript:parent.$('#dlg').dialog('close')">取消</a>
                    </div>
                </form>
            </div>
        </div>
		<!--主体 结束-->
		
		
	</div>
	<div id="cast_list" class="easyui-dialog"
		style="width: 600px; height: 470px; padding-top: 0px;"
		data-options="title:'模型选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="dlg" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'企业管理', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="org_list" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'客户选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
</body>
</html>
